<!DOCTYPE HTML>
<%@ taglib prefix="teste" uri= "/WEB-INF/user.tld"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
	response.setHeader ("Cache-Control", "no-cache");
	response.setHeader ("Pragma", "no-cache");
	response.setDateHeader ("Expires", 0); 
%>


<html>

<head>
	<title>AnaliseDNA</title>
	<meta name="description" content="website description" />
	<meta name="keywords" content="dna, pesquisa" />
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="/AnaliseDNA/include/style.css" />
	
</head>

<div id="main">
	<header>
    	<div id="logo">
        	<div id="logo_text">
          		<h1><a href="/AnaliseDNA/index.html">Analise<span class="logo_colour">DNA</span></a></h1>
         		<h2></h2>
        	</div>
      	</div>
      	<div align="right">
      	
      	    	
      	
      	<s:url id="edit_perfilURL" action="edit_user"><s:param name="id"><s:property value="%{#session.usuario.id}"/></s:param></s:url>
      	<s:url id="edit_passwordURL" action="edit_password"><s:param name="email"><s:property value="%{#session.usuario.email}"/></s:param></s:url>
      	<s:url id="logoutURL" action="logout"></s:url>
      	<s:url id="loginURL" action="show_page_login"></s:url>
      	<s:url id="uploadDNAURL" action="uploadDNA"></s:url>
      	<s:url id="sendEmailURL" action="sendEmail"></s:url>
      	<s:url id="registerUserURL" action="register_user"></s:url>
      	<s:url id="listUsersURL" action="list_users"></s:url>
      	<s:url id="uploadFileURL" action="uploadFile"></s:url>
      	
      	
      	
      	
      	
      	    <teste:checkLogged>
                         
                <s:text name="prompt.welcome.user"></s:text>&nbsp;                     
                <s:property value="%{#session.usuario.first_name}" />
                <s:property value="%{#session.usuario.last_name}" />&nbsp;
                <s:property value="%{#session.data_login}" />&nbsp;
                
      	      	<a href="<s:property value="edit_passwordURL"/>"><s:text name="header.edit.password"/></a>
      	      	<a href="<s:property value="logoutURL"/>"><s:text name="header.logout.user"/></a>
      	    	
      	        
      	    	<teste:checkUserLevel level="Final">
      	    	
      	    	
      	    	  <nav>
        	        <ul class="sf-menu" id="nav">
                    <li class="selected"><a href="/AnaliseDNA/index.html"><s:text name="Home"/></a></li>
          		    <li><a href="<s:property value="uploadDNAURL"/>"><s:text name="menu.register.dna"/></a></li>
         		    <li><a href="/AnaliseDNA/pages/analise_dna/gerarRelatorio.jsp"><s:text name="menu.generate.report"/></a></li>
         	        <li><a href="<s:property value="edit_perfilURL"/>"><s:text name="menu.edit.profile"/></a></li>
          		    <li><a href="<s:property value="sendEmailURL"/>"><s:text name="menu.contact"/></a></li>		
          		     
        	       </ul>
    	           </nav>
      	    		    	    	    	
      	    	     	    	
      	    	</teste:checkUserLevel>
      	    	
      	    	<teste:checkUserLevel level="Researcher">
      	    	      	    	
      	    	   	
      	          <nav>
        	        <ul class="sf-menu" id="nav">
                    <li class="selected"><a href="/AnaliseDNA/index.html"><s:text name="Home"/></a></li>
          			<li><a href="/AnaliseDNA/pages/analise_dna/registrarResultado.jsp"><s:text name="menu.register.research"/></a></li>
				    <li><a href="/AnaliseDNA/pages/analise_dna/visualizarPesquisas.jsp"><s:text name="menu.view.research"/></a></li>         			
					 <li><a href="<s:property value="edit_perfilURL"/>"><s:text name="menu.edit.profile"/></a></li>
          		    <li><a href="<s:property value="sendEmailURL"/>"><s:text name="menu.contact"/></a></li>
        	        </ul>
    	           </nav>	
					
          		    
          		        	    	
      	    	      	    	
      	    	</teste:checkUserLevel>
      	    	
      	    	<teste:checkUserLevel level="Admin">
      	    	
      	    	
      	    	 <nav>
        	       <ul class="sf-menu" id="nav">
                   <li class="selected"><a href="/AnaliseDNA/index.html"><s:text name="Home"/></a></li>
          		   <li><a href="<s:property value="uploadFileURL"/>"><s:text name="menu.import.data"/></a></li>
          		   <li><a href="<s:property value="listUsersURL"/>"><s:text name="menu.view.users"/></a>
          	       <li><a href="<s:property value="edit_perfilURL"/>"><s:text name="menu.edit.profile"/></a></li>        		
         		   </ul>
         		   
         		   
    	         </nav>
          		
          		</teste:checkUserLevel>
        	
      	    	
      	    	
      	    	
      	     	         	    	
      	          	    	
      	    </teste:checkLogged>
      	    
      	       	
      	       	
      	    <teste:checkUnlogged>
        	<a href="<s:property value="loginURL"/>"><s:text name="header.login.user"/></a>
          	<a href="<s:property value="registerUserURL"/>"><s:text name="menu.register.user"/></a></teste:checkUnlogged>
          	
          	
      	</div>
      	<nav>
        	<ul class="sf-menu" id="nav">
            <teste:checkUnlogged><li class="selected"><a href="/AnaliseDNA/index.html"><s:text name="Home"/></a></li></teste:checkUnlogged>
          
        	</ul>
    	</nav>
    </header>
    
<body>